<%-- 
    Document   : boxUtente
    Created on : 11-jul-2009
    Author     : grillo
--%>

<!-- box personale -->
    <div id="profile">
        <div id="profile2">
<%
    boolean loggedIn = session.getAttribute("openid") != null;

    if(loggedIn) {
        String utente = (String)session.getAttribute("openid");

	out.println("<strong class=\"title\">" + utente + "</strong>&nbsp;|&nbsp;");
	out.println("<a title=\"logout\" href=\"?action=logout\">logout</a><br />");

    } else {
%>
	<div id="modulo">
	    <form action="consumer_redirect.jsp" id="form_login" name="form" method="post">
            <table>
                <tr>
                    <td><img src="img/openid.png" title="OpenId Login"/></td>
                    <td><input type="text" name="openid" id="openid" value="" size="45" />
                    <input type="submit" class="button" value="login"/></td>
                </tr>
            </table>
	    </form>
	</div>
<%
    }
%>
	</div>
    <!-- fine box personale -->
    </div>
